<script type="text/javascript" src="../static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../static/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="../static/ueditor/lang/zh-cn/zh-cn.js"></script>
<link type="text/css" href="../static/ueditor/themes/default/css/ueditor.css" rel="stylesheet"/>
<style type="text/css">
    .remark{padding-top:4px;word-break:normal;width:auto;display:block; white-space:pre-wrap;word-wrap:break-word;overflow: hidden}
    .div-item-info{width: 95%}
</style>
<script type="text/javascript">

    //初始化页面
    var keyId = (getUrlParam("keyId", url));
    fy_api.load_template({
        controller: $("#saveForm").attr("templateParam", "keyId=" + keyId),
        initValue: true,
        loading: true,
        loaded: init
    });

    function init(){
        var ue = UE.getEditor('notes',{
            toolbars:[['source', '|',
                'undo', 'redo', '|',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'formatmatch', 'pasteplain', '|',
                'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', '|',
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','indent', '|',
                'horizontal', 'date', 'time', 'spechars', '|',
                'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
                'preview', 'searchreplace']],
            autoHeightEnabled: true,
            autoFloatEnabled: true,
            initialFrameWidth: '95%',
            initialFrameHeight:483,
            elementPathEnabled : false,
            wordCount:false,
            autoHeightEnabled:false
        });
        UE.getEditor('notes').ready( function( editor ) {
            UE.getEditor('notes').setDisabled();
        } );

        //下单状态
        var makeOrderFlag = $("#makeOrderFlag").text();
        if(makeOrderFlag == "0"){
            $("#makeOrderFlag").text("禁用");
        }else if(makeOrderFlag == "1"){
            $("#makeOrderFlag").text("启用");
        }

        //取款状态
        var withdrawFlag = $("#withdrawFlag").text();
        if(withdrawFlag == "0"){
            $("#withdrawFlag").text("禁用");
        }else if(withdrawFlag == "1"){
            $("#withdrawFlag").text("启用");
        }

        //推送状态
        var sendMsgFlag = $("#sendMsgFlag").text();
        if(sendMsgFlag == "0"){
            $("#sendMsgFlag").text("禁用");
        }else if(sendMsgFlag == "1"){
            $("#sendMsgFlag").text("启用");
        }

        //是否定制
        var isCustom = $("#isCustom").text();
        if(isCustom == "0"){
            $("#isCustom").text("否");
        }else if(isCustom == "1"){
            $("#isCustom").text("是");
        }

    }

</script>
<form id="saveForm" templateUrl="company/get.do">
    <table style="margin: 10px auto;border: 1px solid darkgrey;padding: 10px">
        <tr>
            <td>
                <div class="div-label">企业名称：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.name}</span>
                </div>
            </td>
            <td>
                <div class="div-label">金融代码：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.code}</span>
                </div>
            </td>
            <td>
                <div class="div-label">联系方式：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.phone}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">企业地址：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.address}</span>
                </div>
            </td>
            <td>
                <div class="div-label">主营线路：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.line}</span>
                </div>
            </td>
            <td>
                <div class="div-label">url：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.url}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">F6账套名称：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.f6AccountSet}</span>
                </div>
            </td>
            <td>
                <div class="div-label">地区：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.administrativeDivisionCode}</span>
                </div>
            </td>
            <td>
                <div class="div-label">创建时间：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info">${content.createTime}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">下单状态：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="makeOrderFlag">${content.makeOrderFlag}</span>
                </div>
            </td>
            <td>
                <div class="div-label">取款状态：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="withdrawFlag">${content.withdrawFlag}</span>
                </div>
            </td>
            <td>
                <div class="div-label">推送状态：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="sendMsgFlag">${content.sendMsgFlag}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">首页图片显示数量：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="imgLimit">${content.imgLimit}</span>
                </div>
            </td>
            <td>
                <div class="div-label">开始营业时间：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="businessStartTime">${content.businessStartTime}</span>
                </div>
            </td>
            <td>
                <div class="div-label">结束营业时间：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="businessEndTime">${content.businessEndTime}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">开始放款时间：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="lendingStartTime">${content.lendingStartTime}</span>
                </div>
            </td>
            <td>
                <div class="div-label">结束放款时间：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="lendingEndTime">${content.lendingEndTime}</span>
                </div>
            </td>
            <td>
                <div class="div-label">是否定制：</div>
            </td>
            <td>
                <div class="div-item">
                    <span class="div-item-info" id="isCustom">${content.isCustom}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-label">发货须知：</div>
            </td>
            <td colspan="5">
                <div class="div-item" style="width: 95%;height: 95%">
                    <textarea id="notes" readonly="readonly" name="notes">${content.notes}</textarea>
                </div>
            </td>
        </tr>
    </table>
</form>
<div class="form-buttons">
    <a id="btnBack" class="easyui-linkbutton c2" href="#" iconCls="icon-undo" onClick="parent.j_closeWin();">返回</a>
</div>